package com.xmg.design23.d11_proxy.jdk_proxy;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @description: 测试类
 * @Author: mazhongqing
 * @Date: 2021/3/30 9:57
 */
public class Test {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory();
        SellTickets sellTickets = proxyFactory.getProxyObject();
        sellTickets.sell();
        System.out.println(sellTickets.getClass());
//        try(new FileInputStream("123")){
//
//        } catch (FileNotFoundException e) {
//            e.printStackTrace();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        while (true){}
    }
}
